<?php
/* @var $this DonvicongtacController */
/* @var $model Donvicongtac */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'donvicongtac-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Điền đầy đủ vào vị trí có dấu <span class="required">*</span>.</p>

	<?php echo $form->errorSummary($model); ?>
<table>
	<div class="row">
	<tr>
		<td style="width:20%"><?php echo $form->labelEx($model,'madonvi'); ?></td>
		<td><?php echo $form->textField($model,'madonvi',array('size'=>60,'maxlength'=>128)); ?></td>
		<td><?php echo $form->error($model,'madonvi'); ?></td>
	</tr>
	</div>

	<div class="row">
	<tr>
		<td><?php echo $form->labelEx($model,'tendonvi'); ?></td>
		<td><?php echo $form->textfield($model,'tendonvi'); ?></td>
		<td><?php echo $form->error($model,'tendonvi'); ?></td>
	</tr>
	</div>

	<div class="row">
	<tr>
		<td><?php echo $form->labelEx($model,'thuocSGU'); ?></td>
		<td><?php echo $form->radioButtonList($model,'thuocSGU',array('1'=>'Có','0'=>'Không'),array('separator'=>'', 'labelOptions'=>array('style'=>'display:inline;margin:0 2em 0 0;')));?></td>
		<td><?php echo $form->error($model,'thuocSGU'); ?></td>
	</tr>
	</div>

	<div class="row">
	<tr>
		<td><?php echo $form->labelEx($model,'laKhoa'); ?></td>
		<td><?php echo $form->radioButtonList($model,'laKhoa',array('1'=>'Có','0'=>'Không'),array('separator'=>'', 'labelOptions'=>array('style'=>'display:inline;margin:0 2em 0 0;')));?></td>
		<td><?php echo $form->error($model,'laKhoa'); ?></td>
	</tr>
	</div>

	<div class="row">
	<tr>
		<td><?php echo $form->labelEx($model,'ghichu'); ?></td>
		<td><?php echo $form->textField($model,'ghichu'); ?></td>
		<td><?php echo $form->error($model,'ghichu'); ?></td>
	</tr>
	</div>
	</table>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Tạo mới' : 'Lưu'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->